<html>
<head><meta charset="utf-8"><title>custom perf script · t-compiler/wg-parallel-rustc · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/index.html">t-compiler/wg-parallel-rustc</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/topic/custom.20perf.20script.html">custom perf script</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="182391617"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187679-t-compiler/wg-parallel-rustc/topic/custom%20perf%20script/near/182391617" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/topic/custom.20perf.20script.html#182391617">(Dec 02 2019 at 21:24)</a>:</h4>
<p>How long does processing a 1GB <code>perf.data</code> file captured using <code>perf record --call-graph dwarf</code> normally take with <code>perf script</code>? I got one which still wasn't done after an hour. Is it just my computer or is it normal?</p>



<a name="182391869"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187679-t-compiler/wg-parallel-rustc/topic/custom%20perf%20script/near/182391869" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/topic/custom.20perf.20script.html#182391869">(Dec 02 2019 at 21:27)</a>:</h4>
<p>that's normal</p>



<a name="182391885"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187679-t-compiler/wg-parallel-rustc/topic/custom%20perf%20script/near/182391885" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/topic/custom.20perf.20script.html#182391885">(Dec 02 2019 at 21:27)</a>:</h4>
<p>my tool is much faster (which is why I wrote it)</p>



<a name="182391897"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187679-t-compiler/wg-parallel-rustc/topic/custom%20perf%20script/near/182391897" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/topic/custom.20perf.20script.html#182391897">(Dec 02 2019 at 21:27)</a>:</h4>
<p>I should get around to figuring out licensing etc and publish it</p>



<a name="182392969"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187679-t-compiler/wg-parallel-rustc/topic/custom%20perf%20script/near/182392969" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/topic/custom.20perf.20script.html#182392969">(Dec 02 2019 at 21:39)</a>:</h4>
<p>Looking forward to see it being publish! I want to be abable to get a flamegraph of a full <code>cargo build</code> run for the relatively small project I profiled it for.</p>



<a name="182498447"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187679-t-compiler/wg-parallel-rustc/topic/custom%20perf%20script/near/182498447" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/topic/custom.20perf.20script.html#182498447">(Dec 03 2019 at 21:30)</a>:</h4>
<p><span class="user-mention" data-user-id="133247">@bjorn3</span> actually -- one recommendation is to do <code>perf script --no-inline</code> which is a massive speedup usually</p>



<a name="182499418"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187679-t-compiler/wg-parallel-rustc/topic/custom%20perf%20script/near/182499418" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/topic/custom.20perf.20script.html#182499418">(Dec 03 2019 at 21:40)</a>:</h4>
<p>I think that might get you most of the gains</p>



<a name="182542518"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187679-t-compiler/wg-parallel-rustc/topic/custom%20perf%20script/near/182542518" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/topic/custom.20perf.20script.html#182542518">(Dec 04 2019 at 10:22)</a>:</h4>
<p>I will try that <span class="user-mention" data-user-id="116122">@simulacrum</span></p>



<a name="183587066"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187679-t-compiler/wg-parallel-rustc/topic/custom%20perf%20script/near/183587066" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/187679-t-compiler/wg-parallel-rustc/topic/custom.20perf.20script.html#183587066">(Dec 16 2019 at 20:27)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> using <code>--no-inline</code> worked perfect. Now it only takes a few seconds. I wish there was a way to not use it, but instead limit the output to samples containing a certain frame (only my code instead of all of rustc) though.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>